package cn.wlj.rentcar.test;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;


/*
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "classpath:spring/spring.xml", "classpath:spring/spring-mybatis.xml" })
public class ssmzhTest2 {

	@Autowired
	private IUserService userservice;
	
	
	@Test
	public void test01(){
		User user=new User();
		Map<String,Object> cond=new HashMap<String,Object>();
		user.setName("");
		cond.put("user",user);
		cond.put("pageSize", 5);
		cond.put("pageNum", 1);
		Page page=userservice.mhFindUser(cond);
		
		List<Object>list= page.getResult();
        for (Object object : list) {
			User u=(User)object;
			System.out.println(u);
		}
	}
}*/
